package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Table;
import com.ruoyi.system.domain.TableColumn;
import com.ruoyi.system.mapper.TableMapper;
import com.ruoyi.system.service.ITableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TableServiceImpl implements ITableService {

    @Resource
    private TableMapper tableMapper;

    @Override
    public List<Table> selectDbTableList(Table table) {
        table.setTableName("xm");
        return tableMapper.selectDbTableList(table);
    }

    @Override
    public List<TableColumn> selectDbTableColumnsByName(String tableName) {
        return tableMapper.selectDbTableColumnsByName(tableName);
    }
}
